import Vue from 'vue'
import Router from 'vue-router'

import GoodsList from '@/views/GoodsList'
import cart from '@/views/cart'
import address from '@/views/address'
import OrderConfirm from '@/views/OrderConfirm'
import OrderSuccess from '@/views/OrderSuccess'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'GoodsList',
      component:GoodsList
    },
    {
      path: '/cart',
      name: 'cart',
      component:cart
    },
    {
      path: '/address',
      name: 'address',
      component:address
    },
    {
      path: '/OrderConfirm',
      name: 'OrderConfirm',
      component:OrderConfirm
    },
    {
      path: '/OrderSuccess',
      name: 'OrderSuccess',
      component:OrderSuccess
    },

  ]
})
